package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.shop.api.domain.CheDrawal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收支明细对象 che_statement
 * 
 * @author 侯稼骏
 * @date 2024-12-31
 */
public class CheStatement extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verificationTime;

    /** 支付类型（0 收入 1 支出） */
    @Excel(name = "支付类型", readConverterExp = "0=,收=入,1=,支=出")
    private Long type;

    @Override
    public String toString()
    {
        return "CheStatement{" + "id=" + id + ", title='" + title + '\'' + ", verificationTime=" + verificationTime + ", type=" + type + ", money=" + money + ", drawalId=" + drawalId + ", cheDrawal=" + cheDrawal + ", orderId=" + orderId + ", orderService=" + orderService + '}';
    }

    /** 金额 */
    @Excel(name = "金额")
    private Double money;

    /** 提现id */
    @Excel(name = "提现id")
    private Long drawalId;

//    提现信息 外键
    private CheDrawal cheDrawal;

    public CheStatement()
    {
    }

    public CheDrawal getCheDrawal()
    {
        return cheDrawal;
    }

    public void setCheDrawal(CheDrawal cheDrawal)
    {
        this.cheDrawal = cheDrawal;
    }

    public OrderService getOrderService()
    {
        return orderService;
    }

    public void setOrderService(OrderService orderService)
    {
        this.orderService = orderService;
    }

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

//订单信息 外键
    private OrderService orderService;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setVerificationTime(Date verificationTime) 
    {
        this.verificationTime = verificationTime;
    }

    public Date getVerificationTime() 
    {
        return verificationTime;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setMoney(Double money)
    {
        this.money = money;
    }

    public Double getMoney()
    {
        return money;
    }
    public void setDrawalId(Long drawalId) 
    {
        this.drawalId = drawalId;
    }

    public Long getDrawalId() 
    {
        return drawalId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

}
